#ifndef __NV32COM_H
#define __NV32COM_H	 
#include "NV101_uart.h"
#include "NV101_gpio.h"
#include "io_map.h"

extern uint8_t * u0UART_TXBuffer;
extern uint32_t  u0UART_TXCount,u0UART_TXIndex;
extern uint8_t   u0Readtime,u0Rxcounter,u0ReceBuf[128];

extern uint8_t * u1UART_TXBuffer;
extern uint32_t  u1UART_TXCount,u1UART_TXIndex;
extern uint8_t   u1Readtime,u1Rxcounter,u1ReceBuf[128],u1SendBuf[128];


void RS485_Init(void);
void RS485_SendData(uint8_t data[], uint32_t len);
void RS232_Init(void);
void RS232_SendData(uint8_t data[], uint32_t len);	
#endif